package com.cfh.springcloudclientapplication.remoteevent;

import org.springframework.context.ApplicationEvent;


public class RemoteAppEvent extends ApplicationEvent {

    /**
     * 事件传输类型 HTTP RPC
     */
    private String type;
    /**
     * 应用名称
     */
    private String appName;
    /**
     * 是否广播到集群
     */
    private boolean isCluster;

    /**
     * pojo
     *
     * @param source
     * @param appName
     * @param isCluster
     */
    public RemoteAppEvent(Object source, String appName, boolean isCluster) {
        super(source);
        this.appName = appName;
        this.isCluster = isCluster;
    }


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public boolean isCluster() {
        return isCluster;
    }

    public void setCluster(boolean cluster) {
        isCluster = cluster;
    }
}
